package VN.EDU.IMIC.DEVELOPER.TRINHCAOSANG.BaiTapObject.Exc5;


public class RegisController {
    private CoupleModel mModel;
    private CoupleData mData;

    public RegisController(CoupleData mData) {
        mModel = new CoupleModel();
        this.mData = mData;
    }

    public boolean checkRegis() {
        if (mModel.checkName(mData)) {
            if (mModel.checkAge(mData)) {
                if (mModel.checkStatus(mData)) {
                    if (mModel.checkInfo(mData)) {
                        return true;
                    } else
                        return false;
                } else
                    return false;
            }
            return false;
        }
        return false;
    }
}
